@model ShivamEMR.Model.Domain.UserDomain.User
           
@{
    ViewBag.Title = "CreateUser";
    Layout = "~/Views/Shared/_Layout.cshtml";  
    
}
<h2>CreateUser</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>User</legend>

        @Html.HiddenFor(model => model.ID)
		@Html.Partial("_CreateOrEdit", Model)

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}




@*@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
<fieldset>
    <legend>Employee</legend>
   @Html.DropDownListFor(m=>m.PersonID, new SelectList(ViewBag.employees,"ID","FullName", Model.PersonID))   

<legend>User Name</legend>
@Html.TextBoxFor(x=>x.Name)
<legend>Password</legend>
@Html.PasswordFor(x=>x.Password)
<legend>Role</legend>
 @Html.DropDownListFor(m=>m.Role.ID, new SelectList(ViewBag.roles,"ID","Role", Model.RoleID)) 
 
 
  <legend>Notes</legend>
  @Html.TextBoxFor(x=>x.Notes)
         <p>
            <input type="submit" value="Create" />
        </p>
        </fieldset>
    }*@
<div>
    @Html.ActionLink("Back to List", "Index")
</div>


